const Koa = require('koa');
const route = require('koa-route');
const compose = require('koa-compose');
const app = new Koa();



const e500_thrower = ctx =>{
    ctx.throw(500);
};
app.on('error',(err,ctx)=>{
    console.log('server error:'+ err.message);
});

app.use(e500_thrower);

app.listen(3006);
